.chat-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 400px;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
}

.chat-container.visible {
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  background: rgba(31, 41, 55, 0.95);
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.close-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom scrollbar */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.message {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.message:hover {
  background: rgba(255, 255, 255, 0.15);
}

.message.system {
  background: rgba(59, 130, 246, 0.15);
  font-style: italic;
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.message.system:hover {
  background: rgba(59, 130, 246, 0.2);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.player-name {
  font-weight: 600;
  color: #3b82f6;
  font-size: 13px;
}

.timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.chat-bubble {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble .unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile styles */
@media (max-width: 768px) {
  .chat-container {
    z-index: 30000;
    width: 100%;
    height: 60vh;
    left: 0;
    margin: 0;
  }
  
  .chat-header {
    padding: 10px 12px;
  }
  
  .filter-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .messages-container {
    padding: 12px;
  }
  
  .chat-input-container {
    padding: 8px 12px;
  }
  

  .chat-bubble {
    z-index: 30000;
    bottom: 10px;
    left: 10px;
  }
} 